package controller;

import db.DBCustomer;
import java.util.ArrayList;
import model.Customer;

public class CustomerCtr {

	 private DBCustomer dbCustomer = new DBCustomer();

	
	public CustomerCtr() {
		
	}
	
        public ArrayList<Customer> getAllCustomers(){
            
            return dbCustomer.getAllCustomers(true);
        }
                
                
                
	
	public Customer findCustomer(String phoneNo){
		 return dbCustomer.findCustomer(phoneNo, true);	
	}
	
	public void deleteCustomer(String phoneNo){
		dbCustomer.delete(phoneNo);
	}
	
	public void updateCustomer(Customer customer){
		dbCustomer.updateCustomer(customer);
	}
	
	public void createCustomer(Customer customer){
		dbCustomer.insertCustomer(customer);
	}
	
	
	
	
	
}
